﻿<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>

<fmt:setBundle basename="ApplicationMessage" />
<fmt:setLocale value="zh_CN" />

<table class="table table-striped table-hover x-table bottom-margin-20" style="margin-bottom:20px;">
  <thead>
    <tr>
      <th>所在页面</th>
      <th>链接别名</th>
      <th>链接地址</th>
      <th class="text-center">操作</th>
    </tr>
  </thead>

  <tbody>
    <c:forEach var="link" items="${links}">
      <tr>
        <td>${link.webpage.name }</td>
        <td>${link.alias }</td>
        <td style="max-width: 200px; text-overflow: ellipsis; white-space: nowrap; overflow: hidden;">${link.address}</td>
        <td class="text-center">
          <a href="${ctx.host }/webpages/${webpageId}/links/${link.id}/edit" data-target="#link-view" data-toggle="modal" title="详情">详情</a>
        </td>
      </tr>
 </c:forEach>
  </tbody>
</table>
       